home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / biff_and.swf / scripts / DefineSprite_24_GoldFish / frame_2 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  7.1 KB  |  242 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 71 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = 538 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 893)
  9.    {
  10.       set("\x01",eval("\x01") - 200);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 998)
  14.    {
  15.       set("\x01",eval("\x01") - 677);
  16.       ┬º┬ºpush(!function ┬º\x01\x02┬º()
  17.       {
  18.          return 71 % 511 * 5;
  19.       });
  20.    }
  21.    else
  22.    {
  23.       if(eval("\x01") == 383)
  24.       {
  25.          set("\x01",eval("\x01") + 382);
  26.          FishControl = function()
  27.          {
  28.             pos = this._x;
  29.             offsetBiffX = _root.Biff._x - this._x;
  30.             offsetBiffY = Math.abs(_root.Biff._y - this._y);
  31.             offsetBaffX = _root.Baff._x - this._x;
  32.             offsetBaffY = Math.abs(_root.Baff._y - this._y);
  33.             if(offsetBiffX > -150 && offsetBiffX < 0 && offsetBiffY < 40 || offsetBaffX > -150 && offsetBaffX < 0 && offsetBaffY < 40)
  34.             {
  35.                gotoAndStop(3);
  36.                xSpeed += 0.5;
  37.                _root.SpawnSBub(this._x,this._y);
  38.             }
  39.             else
  40.             {
  41.                gotoAndStop(2);
  42.             }
  43.             if(pos < -150 || pos > 700)
  44.             {
  45.                _root.noFishesOK = _root.noFishesOK + 1;
  46.                resetEyesBiff();
  47.                resetEyesBaff();
  48.                _root.goldCount = _root.goldCount - 1;
  49.                this.removeMovieClip();
  50.             }
  51.             this._x -= xSpeed;
  52.          };
  53.          resetEyesBiff = function()
  54.          {
  55.             clearInterval(colReniBiff);
  56.             _root.Biff.gotoAndStop(1);
  57.          };
  58.          colControlBiff = function()
  59.          {
  60.             if(this.hitTest(_root.Biff) && _root.Biff.shield._alpha < 5)
  61.             {
  62.                _root.Biff.gotoAndStop(2);
  63.                _root.dragallowBiff = 0;
  64.                colReniBiff = setInterval(resetEyesBiff,_root.stunned);
  65.                _root.energy = _root.energy - 1;
  66.                _root.SpawnBlood(_root.Biff._x,_root.Biff._y);
  67.             }
  68.          };
  69.          resetEyesBaff = function()
  70.          {
  71.             clearInterval(colReniBaff);
  72.             _root.Baff.gotoAndStop(1);
  73.             _root.dragallowBaff = 1;
  74.          };
  75.          colControlBaff = function()
  76.          {
  77.             if(this.hitTest(_root.Baff) && _root.Biff.shield._alpha < 5)
  78.             {
  79.                _root.Baff.gotoAndStop(2);
  80.                _root.dragallowBaff = 0;
  81.                colReniBaff = setInterval(resetEyesBaff,_root.stunned);
  82.                _root.energy = _root.energy - 1;
  83.                _root.SpawnBlood(_root.Baff._x,_root.Baff._y);
  84.             }
  85.          };
  86.          onEnterFrame = function()
  87.          {
  88.             FishControl();
  89.             colControlBiff();
  90.             colControlBaff();
  91.             if(_root.countLevel > 7)
  92.             {
  93.                this._rotation = Math.sin((- _root.absFrames) / 30) * 10;
  94.                this._y += Math.sin(_root.absFrames / 30) * sinfact;
  95.             }
  96.             if(_root._currentFrame != 15)
  97.             {
  98.                this.removeMovieClip();
  99.             }
  100.             if(_root.lineCol.hitTest(this._x,this._y,true))
  101.             {
  102.                _root.noFishesOK = _root.noFishesOK + 1;
  103.                _root.goldCount = _root.goldCount - 1;
  104.                if(_root.linecolor == 1)
  105.                {
  106.                   _root.score += _root.countLevel * 10;
  107.                   onEnterFrame = function()
  108.                   {
  109.                      this._alpha -= 5;
  110.                      this._x = this._x - 1;
  111.                      this._y -= 1.5;
  112.                      if(this._alpha < 5)
  113.                      {
  114.                         this.removeMovieClip();
  115.                      }
  116.                   };
  117.                   this.Tail.Anim.stop();
  118.                   x = 0;
  119.                   while(x < 10)
  120.                   {
  121.                      _root.attachMovie("Bloodstar","Bloodstar" + _root.bloodcount,_root.bloodcount,{_x:this._x,_y:this._y});
  122.                      _root.bloodcount = _root.bloodcount + 1;
  123.                      if(_root.bloodcount > 85)
  124.                      {
  125.                         _root.bloodcount = 20;
  126.                      }
  127.                      x++;
  128.                   }
  129.                }
  130.                else
  131.                {
  132.                   if(_root.score > _root.countLevel * 5)
  133.                   {
  134.                      _root.score -= _root.countLevel * 5;
  135.                   }
  136.                   x = 0;
  137.                   while(x < 18)
  138.                   {
  139.                      _root.attachMovie("Bloodfree","Bloodfree" + _root.bloodcount,_root.bloodcount,{_x:this._x,_y:this._y});
  140.                      _root.bloodcount = _root.bloodcount + 1;
  141.                      if(_root.bloodcount > 85)
  142.                      {
  143.                         _root.bloodcount = 20;
  144.                      }
  145.                      this._alpha -= 3;
  146.                      x++;
  147.                   }
  148.                   this.removeMovieClip();
  149.                }
  150.             }
  151.          };
  152.          stop();
  153.          break;
  154.       }
  155.       if(eval("\x01") == 501)
  156.       {
  157.          set("\x01",eval("\x01") - 118);
  158.       }
  159.       else if(eval("\x01") == 900)
  160.       {
  161.          set("\x01",eval("\x01") - 419);
  162.       }
  163.       else if(eval("\x01") == 549)
  164.       {
  165.          set("\x01",eval("\x01") + 449);
  166.          ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  167.          {
  168.             return 71 % 511 * 5;
  169.          }));
  170.       }
  171.       else if(eval("\x01") == 481)
  172.       {
  173.          set("\x01",eval("\x01") - 236);
  174.          ┬º┬ºpush("\x0f");
  175.          ┬º┬ºpush(1);
  176.       }
  177.       else if(eval("\x01") == 511)
  178.       {
  179.          set("\x01",eval("\x01") + 38);
  180.          ┬º┬ºpush("\x0f");
  181.       }
  182.       else if(eval("\x01") == 321)
  183.       {
  184.          set("\x01",eval("\x01") + 180);
  185.          if(function ┬º\x01\x02┬º()
  186.          {
  187.             return 71 % 511 * 5;
  188.          })
  189.          {
  190.             set("\x01",eval("\x01") - 118);
  191.          }
  192.       }
  193.       else
  194.       {
  195.          if(eval("\x01") == 86)
  196.          {
  197.             set("\x01",eval("\x01") + 814);
  198.             set(function ┬º\x01\x02┬º()
  199.             {
  200.                return 71 % 511 * 5;
  201.             },eval("\x01") + 258);
  202.             break;
  203.          }
  204.          if(eval("\x01") == 693)
  205.          {
  206.             set("\x01",eval("\x01") - 607);
  207.             if(function ┬º\x01\x02┬º()
  208.             {
  209.                return 71 % 511 * 5;
  210.             })
  211.             {
  212.                set("\x01",eval("\x01") + 814);
  213.             }
  214.          }
  215.          else
  216.          {
  217.             if(eval("\x01") == 765)
  218.             {
  219.                set("\x01",eval("\x01") - 765);
  220.                break;
  221.             }
  222.             if(eval("\x01") == 856)
  223.             {
  224.                set("\x01",eval("\x01") - 375);
  225.             }
  226.             else
  227.             {
  228.                if(eval("\x01") != 245)
  229.                {
  230.                   break;
  231.                }
  232.                set("\x01",eval("\x01") + 266);
  233.                var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  234.                {
  235.                   return 71 % 511 * 5;
  236.                };
  237.             }
  238.          }
  239.       }
  240.    }
  241. }
  242.